<template>
  <div id="app">
    <!-- <header>
      <h1>安全 Electron 应用</h1>
    </header> -->
    <main>
      <router-view />
    </main>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    // 检查是否在 Electron 环境中
    if (window.electronAPI) {
      console.log('Running in Electron environment');
    } else {
      console.log('Running in development or web environment');
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height:100%;
  display: flex;
  flex-direction: column;
}

/* header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: center;
} */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
</style>